package com.woniuxy.food.client.foodtypeclient;

import com.woniuxy.food.client.param.InsertFoodTypeParam;
import com.woniuxy.food.client.param.UpdateFoodTypeParam;
import com.woniuxy.food.client.param.UpdateFoodTypeStateParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;
import result.Result;

@FeignClient(contextId = "foodTypeManageClient",name = "food")
public interface FoodTypeManageClient {
    @PostMapping("/insertFoodType")
    public Result insertFoodType(@RequestBody InsertFoodTypeParam param);

    @PutMapping("/updateFoodTypeStateByIds")
    public Result updateFoodTypeByIds(@RequestBody UpdateFoodTypeStateParam param);

    @PutMapping("/updateFoodTypeById")
    public Result updateFoodTypeById(@RequestBody UpdateFoodTypeParam param);

    @DeleteMapping("/deleteFoodTypeByIds")
    public Result deleteFoodTypeByIds(@RequestParam("ids") Integer[] ids,@RequestParam("storeId") Integer storeId);
}
